import request from '@/utils/request'


// 获取角色列表
export const getRoleList = (params?: any) => request.get({ url: '/adminapi/system.role/lists', params });

// 新增角色
export const addRole = (data: any) => request.post({ url: '/adminapi/system.role/save', data });

// 编辑角色
export const editRole = (data: any) => request.put({ url: '/adminapi/system.role/update', data });

// 删除角色
export const deleteRole = (id: any) => request.delete({ url: '/adminapi/system.role/delete', params: { id } });


// 设置权限
export const setAuth = (data: any) => request.put({ url: '/adminapi/system.role/setAuth', data });
